﻿/*
 *Author: Jeff Liu 
 *
 *Under MIT License
 *jebberwocky@gmail.com
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CtpGglMap.Core.StaticMap
{
    public class Const
    {
        public const String GOOGLE_STATIC_MAPS_API_URL = "http://maps.google.com/maps/api/staticmap";

        /// <summary>
        /// separated by the pipe character (|). (The pipe character is also %7C in ASCII if you are encoding your URLs.)
        /// </summary>
        public const String PIPE_SEPARATOR = "|"; 

        /// <summary>
        /// refer to :http://code.google.com/apis/maps/documentation/staticmaps/
        /// Static Map URLs are restricted to 2048 characters in size. In practice, you will probably not have need for URLs longer than this, 
        /// unless you produce complicated maps with a high number of markers and paths. Note, however, that certain characters may be 
        /// URL-encoded by browsers and/or services before sending them off to the Static Map service, resulting in increased character usage.
        /// 
        /// In practice, Google still responses bad request when length is around 2000. As a conversion, 1960 is used here
        /// </summary>
        public const int MAX_REQUEST_CHARACTER_LENGTH = 1960;
    }

    public class ImageFormats
    {
        public const String PNG = "png";
        public const String PNG8 = "png8";
        public const String PNG32 = "png32";
        public const String GIF = "gif";
        public const String JPG = "jpg";
        public const String JPG_BASELINE = "jpg-baseline";
    }

    public class MapType
    {
        public const String ROADMAP = "roadmap";
        public const String SATELITE = "satelite";
        public const String TERAIN = "terrain";
        public const String HYBRID = "hybrid";
    }
}
